package com.bobi.tfca.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bobi.tfca.model.entity.GroupMessageEntity;

import java.util.List;

/**
 * 群消息服务层
 * @author 李文发
 * @date 2024/4/3
 */
public interface GroupMessageService extends IService<GroupMessageEntity> {

    Boolean checkNewGroupMsg(Integer memberId);


    List<GroupMessageEntity> getGroupMessages(Integer groupId);

    long getUnReadMessageNum(Integer memberId, Integer groupId);

    void deleteGroupMessages(Integer groupId);

    void removeMessageByMessageId(Long messageId);
}
